#打印三角形
n = 1
while n <= 5:
    print('*' * n)
    n += 1


n = 1
while n <= 5:
    count = 1
    while count <= n:
        print('*',end='')
        count += 1
    n += 1
    print()

#打印九九乘法表
for i in range(1,10):
    for j in range(1,i+1):
        print('{}*{}={}'.format(j,i,i*j),end=' ')
    print()

i = 1
while i <= 9:
    j = 1
    while j <= i:
        print('{}*{}={}'.format(j,i,i*j),end=' ')
        j += 1
    print()
    i += 1
